|
This page last changed on Mar 17, 2008.
.stickable, h1, h2, h3, h4, h5
false
true
Show Sticky notes
Hide Sticky notes
Oracle Data Service Integrator Documentation > Data Services Developer's Guide
Create First Data Services Cheatsheet
If you'd like to create your first data services in less than 15 minutes, follow these abbreviated steps:
- Create a new dataspace project called:

- Under it create folders named logical and physical
Under physical:
New > Physical Data Service
- Choose Relational
- Select dspSampesDataSource as the data source.
- Select RTLAPPLOMS and RTLCUSTOMER
- Next.
- Mark all operations
Next
- Set common Namespace to:
Next
- Finish
- No to the question about opening all the new data services.
- Click the logical folder
New > Logical Data Service
- Call the data service:
- Click Finish.
- Add an operation and name it: custOrdersItemsByCustID
- Click OK.
- {{Click on the name of the new operation to enter the Query Map.
}}
- Drag the Read operations from the following to the work area:
- CUSTOMER.ds
- CUSTOMER_ORDER.ds
- CUSTOMER_ORDER_LINE_ITEM.ds
- Edit the signature to Add a string parameter named:
- Click OK twice.
- Click Overwrite mode.
- Drag, then expand in the following order:
- CUSTOMER*
- CUSTOMER_ORDER*
- CUSTOMER_ORDER_LINE_ITEM*
- Map the Zone icons to the respective element in the Return type:
- CUSTOMER_ORDER*
- CUSTOMER_ORDER_LINE_ITEM*
- Create the following joins:
| Source and element |
Target and element |
| $CUSTOMER/CUSTOMER_ID |
$CUSTOMER_ORDER/C_ID |
$CUSTOMER_ORDER/ORDER_ID |
$CUSTOMER_ORDER_LINE_ITEM/ORDER_ID |
- Associate the custID parameter with the CUSTOMER/CUSTOMER_ID element.
- From the Return type, Save and Associate XML type.
- Change the CUSTOMER name to {CUST_ORDERS_ITEMS}}.
- Modify your new CUST_ORDERS_ITEMS XML Type:
- Click on the Overview tab, if it is not already selected.
- Right-click on the topmost element in the XML type: CUST_ORDER_ITEMS.
- Select Edit Schema. The Eclipse schema editor opens.
- Click the schema editor's Source tab (below the editor's work area).
- Locate the first qualified element: CUSTOMER_ORDER.
- Place your cursor where you want to add the statement (just before the closing angle bracket at the end of the line)
- Enter a space.
- Activate the code assistant with the combination:
You will get a code completion dialog.
- Perform the Ctrl+space operation twice, once for the max_occurs, and again to add the unbounded statement. The line now appears as:
F I X
- Follow Steps 5-9 for the second qualified element, CUSTOMER_ORDER_LINE_ITEM.
- Save the CUST_ORDERS_ITEMS.xsd file.
|